package org.study.canal.boot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 类的描述
 *
 * @author Administrator
 * @date 2021-12-23
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.canal")
public class CanalProperties {
    /**
     * hostname
     */
    private String hostname;
    /**
     * port
     */
    private int port;
    /**
     * destination
     */
    private String destination;
    /**
     * username
     */
    private String username;
    /**
     * password
     */
    private String password;
    /**
     * batchSize
     */
    private int batchSize;
    /**
     * 指定要订阅的数据库表、表，格式为：数据库.表名,数据库.表名
     */
    private String filter;
}
